var _num = 10;
function getURL(){
	var resultURL;
	var urlStr = document.location.pathname;
	urlStr = urlStr.substring(1);
	resultURL =urlStr.substring(0,urlStr.indexOf('/'));
	return resultURL;
}

function getRootPath(){
	var curWwwPath = window.document.location.href;

	var pathName = window.document.location.pathname;

	var pos = curWwwPath.indexOf(pathName);

	var localhostPath = curWwwPath.substring(0,pos);

	var projectName = pathName.substring(0,pathName.substr(1).indexOf('/')+1);

	return (localhostPath+projectName);
}